package com.hdoit.kylin.logical.document.model;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.tennetcn.common.aop.CommonApplicationContextUtil;
import com.tennetcn.common.enums.EnumDescription;
import com.tennetcn.common.enums.pub.YesOrNoInteger;
import com.tennetcn.common.message.ModelBase;
import com.tennetcn.common.utils.CommonUtils;
import com.tennetcn.common.utils.DateUtils;
import com.tennetcn.component.web.SessionWebFactory;

/**
 * 
 * @author guoshuren
 * @email
 * @createDate 2018.1.31
 *
 */

@Entity
@Table(name="data_weeklog")
public class WeekLog extends ModelBase {
	
	@Id
	@Column(name="id")
	private String id;
	
	@Column(name="createDate")
	private Date createDate;
	
	@Column(name="modifyDate")
	private Date modifyDate;
	
	@Column(name="createUserId")
	private String createUserId;
	
	@Column(name="createUserName")
	private String createUserName;
	
	@Column(name="modifyUserId")
	private String modifyUserId;
	
	//文档数据
	@Column(name="data")
	private String data;
	
	//是否删除
	@Column(name="deleteMark")
	private int deleteMark;
	
	//是否公开
	@Column(name="publicMark")
	private int publicMark;
	
	@Column(name="commentMark")
	private int commentMark;
	
	@Column(name="referencesIds")
	private String referencesIds;
	
	@Column(name="studyStatus")
	private String studyStatus;
	
	@Column(name="achievements")
	private String achievements;
	
	@Column(name="discussWithOthers")
	private String discussWithOthers;
	
	@Column(name="problems")
	private String problems;
	
	@Column(name="nextWeekTasks")
	private String nextWeekTasks;
	
	@Column(name="comments")
	private String comments;

	public WeekLog() {
		this.createDate = DateUtils.getCurrent();
		this.createUserId = CommonApplicationContextUtil.getCurrentContext().getBean(SessionWebFactory.class).getCurrentLogin().getLoginId();
		this.commentMark = YesOrNoInteger.no;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public String getModifyUserId() {
		return modifyUserId;
	}

	public void setModifyUserId(String modifyUserId) {
		this.modifyUserId = modifyUserId;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public int getDeleteMark() {
		return deleteMark;
	}

	public void setDeleteMark(int deleteMark) {
		this.deleteMark = deleteMark;
	}

	public int getPublicMark() {
		return publicMark;
	}

	public void setPublicMark(int publicMark) {
		this.publicMark = publicMark;
	}

	public String getReferencesIds() {
		return referencesIds;
	}

	public void setReferencesIds(String referencesIds) {
		this.referencesIds = referencesIds;
	}

	public String getStudyStatus() {
		return studyStatus;
	}

	public void setStudyStatus(String studyStatus) {
		this.studyStatus = studyStatus;
	}

	public String getAchievements() {
		return achievements;
	}

	public void setAchievements(String achievements) {
		this.achievements = achievements;
	}

	public String getDiscussWithOthers() {
		return discussWithOthers;
	}

	public void setDiscussWithOthers(String discussWithOthers) {
		this.discussWithOthers = discussWithOthers;
	}

	public String getProblems() {
		return problems;
	}

	public void setProblems(String problems) {
		this.problems = problems;
	}

	public String getNextWeekTasks() {
		return nextWeekTasks;
	}

	public void setNextWeekTasks(String nextWeekTasks) {
		this.nextWeekTasks = nextWeekTasks;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	public int getCommentMark() {
		return commentMark;
	}

	public void setCommentMark(int commentMark) {
		this.commentMark = commentMark;
	}
	
}
